﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage_List.master" AutoEventWireup="true" CodeFile="RoleList.aspx.cs" Inherits="Admin_Account_RoleList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Title" runat="Server">
    角色管理
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Search" runat="Server">
    <table>
        <tr>
            <th>角色名称：
            </th>
            <td>
                <asp:TextBox ID="txt_RoleName" runat="server" CssClass="ht-textbox"></asp:TextBox>
            </td>
            <th>角色编码：
            </th>
            <td>
                <asp:TextBox ID="txt_RoleCode" runat="server" CssClass="ht-textbox"></asp:TextBox>
            </td>
            <td>
                <asp:LinkButton ID="btn_Search" runat="server" Text="查询" OnClick="btn_Search_Click" CssClass="easyui-linkbutton" data-options="iconCls:'icon-search'" />
                <asp:LinkButton ID="btn_Add" runat="server" Text="增加" PostBackUrl="RoleEdit.aspx?Action=Add" CssClass="easyui-linkbutton" data-options="iconCls:'icon-add'" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <div class="ht-panel-grid">
        <asp:Repeater ID="RepeaterList" runat="server"
            OnItemCommand="RepeaterList_ItemCommand"
            OnItemDataBound="RepeaterList_ItemDataBound">
            <HeaderTemplate>
                <table class="ht-grid" border="0" style="margin-top: 10px;">
                    <thead>
                        <tr>
                            <th>角色名称</th>
                            <th>角色编码</th>
                            <th style="width: 200px;">是否禁用</th>
                            <th style="width: 200px;">操作</th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td><%#Eval("RoleName") %></td>
                    <td><%#Eval("RoleCode") %></td>
                    <td style="text-align: center;">
                        <asp:Label ID="lbl_Valid" runat="server" Text="启用"></asp:Label>
                        <asp:LinkButton ID="lbtn_Valid" runat="server" CommandName="Valid" CommandArgument='<%#Eval("RoleId") %>'>修改</asp:LinkButton>
                    </td>
                    <td>
                        <asp:LinkButton ID="lbtn_Modify" runat="server" CommandName="Modify" CommandArgument='<%#Eval("RoleId") %>'>编辑</asp:LinkButton>
                        <asp:LinkButton ID="lbtn_Detail" runat="server" CommandName="Detail" CommandArgument='<%#Eval("RoleId") %>'>查看</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Pager" runat="Server">
    <webdiyer:AspNetPager ID="PaginateCtl" runat="server" OnPageChanged="PaginateCtl_PageChanged" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Footer" runat="Server">
</asp:Content>

